
package gui;


public class MenuEmpregado extends javax.swing.JFrame {

    public MenuEmpregado() {
        initComponents();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        botaoCalculaEmprestimo = new javax.swing.JButton();
        botaoCadastroEmpregado = new javax.swing.JButton();
        botaoAlterarEmpregado = new javax.swing.JButton();
        botaoExcluirEmpregado = new javax.swing.JToggleButton();
        botaoConsultar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        setFocusableWindowState(false);
        setFont(new java.awt.Font("Aharoni", 0, 24));

        botaoCalculaEmprestimo.setForeground(new java.awt.Color(0, 51, 51));
        botaoCalculaEmprestimo.setText("Calcular Emprestimo");
        botaoCalculaEmprestimo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoCalculaEmprestimoActionPerformed(evt);
            }
        });

        botaoCadastroEmpregado.setForeground(new java.awt.Color(0, 51, 51));
        botaoCadastroEmpregado.setText("Cadastrar Empregado");
        botaoCadastroEmpregado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoCadastroEmpregadoActionPerformed(evt);
            }
        });

        botaoAlterarEmpregado.setForeground(new java.awt.Color(0, 51, 51));
        botaoAlterarEmpregado.setText("Alterar Empregado");
        botaoAlterarEmpregado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoAlterarEmpregadoActionPerformed(evt);
            }
        });

        botaoExcluirEmpregado.setForeground(new java.awt.Color(0, 51, 51));
        botaoExcluirEmpregado.setText("Exluir Empregado");
        botaoExcluirEmpregado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoExcluirEmpregadoActionPerformed(evt);
            }
        });

        botaoConsultar.setText("Consultar Emprestimo");
        botaoConsultar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoConsultarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(174, 174, 174)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(botaoConsultar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 174, Short.MAX_VALUE)
                    .addComponent(botaoCalculaEmprestimo, javax.swing.GroupLayout.DEFAULT_SIZE, 174, Short.MAX_VALUE)
                    .addComponent(botaoExcluirEmpregado, javax.swing.GroupLayout.DEFAULT_SIZE, 174, Short.MAX_VALUE)
                    .addComponent(botaoAlterarEmpregado, javax.swing.GroupLayout.DEFAULT_SIZE, 174, Short.MAX_VALUE)
                    .addComponent(botaoCadastroEmpregado, javax.swing.GroupLayout.DEFAULT_SIZE, 174, Short.MAX_VALUE))
                .addGap(267, 267, 267))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(33, Short.MAX_VALUE)
                .addComponent(botaoConsultar, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(botaoCadastroEmpregado, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(botaoAlterarEmpregado, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(botaoExcluirEmpregado, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(botaoCalculaEmprestimo, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(46, 46, 46))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void botaoCadastroEmpregadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoCadastroEmpregadoActionPerformed
        CadastrarEmpregado openCadastro = new CadastrarEmpregado(this,true);
        openCadastro.setVisible(true);
    }//GEN-LAST:event_botaoCadastroEmpregadoActionPerformed

private void botaoAlterarEmpregadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoAlterarEmpregadoActionPerformed
        AlterarEmpregado openAltera = new AlterarEmpregado(this, true);
        openAltera.setVisible(true);
}//GEN-LAST:event_botaoAlterarEmpregadoActionPerformed

private void botaoExcluirEmpregadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoExcluirEmpregadoActionPerformed
        ExcluirEmpregado openExlui = new ExcluirEmpregado(this, true);
        openExlui.setVisible(true);
}//GEN-LAST:event_botaoExcluirEmpregadoActionPerformed

private void botaoCalculaEmprestimoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoCalculaEmprestimoActionPerformed
        CalcularEmprestimo openCalculo = new CalcularEmprestimo(this, true);
        openCalculo.setVisible(true);
}//GEN-LAST:event_botaoCalculaEmprestimoActionPerformed

private void botaoConsultarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoConsultarActionPerformed
                                                       
        ConsultarEmprestimo openConsulta = new ConsultarEmprestimo(this, true);
        openConsulta.setVisible(true);
}//GEN-LAST:event_botaoConsultarActionPerformed

    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                new MenuEmpregado().setVisible(true);
            }
        });
    }   


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botaoAlterarEmpregado;
    private javax.swing.JButton botaoCadastroEmpregado;
    private javax.swing.JButton botaoCalculaEmprestimo;
    private javax.swing.JButton botaoConsultar;
    private javax.swing.JToggleButton botaoExcluirEmpregado;
    // End of variables declaration//GEN-END:variables

}
